<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>布局常用样式属性</title>
    <!-- 
        width  设置元素(标签)的宽度
        height 设置元素(标签)的高度
        background 设置元素背景色或者背景图片
        background:gold; 设置元素的背景色
        background:url(images/logo.png); 设置元素的背景图片
     -->
    <!--
       border 设置元素四周的边框
       border-top 设置顶部边框
       border-bottom 设置底部边框
       border-left 设置左边边框
       border-right 设置右边边框
     -->
    <style>
        div {
            width: 100px;
            height: 100px;
            color: red;
            background-color: white;
            background-image: url(https://b.bdstatic.com/searchbox/icms/searchbox/img/young_girl.png);
            border: 5px solid gold;
            text-align: center;
        }
    </style>
</head>
<body>
<div>itcast</div>
</body>
</html>